package com.ruoyi.sale.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 销售出库对象 sale_storeout
 * 
 * @author ruoyi
 * @date 2022-09-03
 */
public class SaleStoreout extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private Long orderNo;

    /** 客户id */
    @Excel(name = "客户id")
    private Long customerId;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String customerName;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** 账户id */
    @Excel(name = "账户id")
    private Long accountId;

    /** 账户名称 */
    @Excel(name = "账户名称")
    private String accountName;

    /** 优惠前金额 */
    @Excel(name = "优惠前金额")
    private Long amount;

    /** 优惠金额 */
    @Excel(name = "优惠金额")
    private Long reduced;

    /** 定金 */
    @Excel(name = "定金")
    private Long earnest;

    /** 实际收取金额 */
    @Excel(name = "实际收取金额")
    private Long pay;

    /** 欠款 */
    @Excel(name = "欠款")
    private Long debt;

    /** 销售单状态，-1：拒绝，0：待审核，1：已审核待出库，2：完成销售 */
    @Excel(name = "销售单状态，-1：拒绝，0：待审核，1：已审核待出库，2：完成销售")
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderNo(Long orderNo) 
    {
        this.orderNo = orderNo;
    }

    public Long getOrderNo() 
    {
        return orderNo;
    }
    public void setCustomerId(Long customerId) 
    {
        this.customerId = customerId;
    }

    public Long getCustomerId() 
    {
        return customerId;
    }
    public void setCustomerName(String customerName) 
    {
        this.customerName = customerName;
    }

    public String getCustomerName() 
    {
        return customerName;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setAccountId(Long accountId) 
    {
        this.accountId = accountId;
    }

    public Long getAccountId() 
    {
        return accountId;
    }
    public void setAccountName(String accountName) 
    {
        this.accountName = accountName;
    }

    public String getAccountName() 
    {
        return accountName;
    }
    public void setAmount(Long amount) 
    {
        this.amount = amount;
    }

    public Long getAmount() 
    {
        return amount;
    }
    public void setReduced(Long reduced) 
    {
        this.reduced = reduced;
    }

    public Long getReduced() 
    {
        return reduced;
    }
    public void setEarnest(Long earnest) 
    {
        this.earnest = earnest;
    }

    public Long getEarnest() 
    {
        return earnest;
    }
    public void setPay(Long pay) 
    {
        this.pay = pay;
    }

    public Long getPay() 
    {
        return pay;
    }
    public void setDebt(Long debt) 
    {
        this.debt = debt;
    }

    public Long getDebt() 
    {
        return debt;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNo", getOrderNo())
            .append("customerId", getCustomerId())
            .append("customerName", getCustomerName())
            .append("productName", getProductName())
            .append("accountId", getAccountId())
            .append("accountName", getAccountName())
            .append("amount", getAmount())
            .append("reduced", getReduced())
            .append("earnest", getEarnest())
            .append("pay", getPay())
            .append("debt", getDebt())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
